package pattern.pay.factory.v2;

import pattern.pay.factory.v2.method.AliPayFactory;
import pattern.pay.factory.v2.method.PayFactory;
import pattern.pay.factory.v2.method.WechatPayFactory;

public class Main {

    public static void main(String[] args) {
        PayFactory aliPayFactory = new AliPayFactory();
        Pay aliPay = aliPayFactory.getPay();
        aliPay.unifiedorder();


        PayFactory wechatPayFactory = new WechatPayFactory();
        Pay wechatPay = wechatPayFactory.getPay();
        wechatPay.unifiedorder();
    }
}
